import request from '@/utils/request'

export function getDownloadHref(blobContainerName, blobName, fileName) {
  return process.env.VUE_APP_BASE_API + `/api/bookstore2/blob/download?blobName=${blobName}&fileName=${fileName}&blobContainerName=${blobContainerName}`
}

export function uploadBlob(blobContainerName, file) {
  return request({
    url: `/api/bookstore2/blob/${blobContainerName}/upload`,
    method: 'post'
  })
}
